//package com.ruoyi.uniapp.unilogin.controller;
//
//import com.ruoyi.common.core.controller.BaseController;
//import com.ruoyi.common.core.domain.AjaxResult;
//import com.ruoyi.uniapp.unilogin.domain.UniUser;
//import com.ruoyi.uniapp.unilogin.service.UniUserService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//public class UniLoginController extends BaseController {
//    @Autowired
//    private UniUserService uniUserService;
//
//    @PostMapping("/uni/login")
//    public AjaxResult login(@RequestBody UniUser uniUser) {
//        AjaxResult ajax = AjaxResult.success();
//        String token = uniUserService.login(uniUser.getUsername(), uniUser.getPassword());
//        ajax.put("token", token);
//        return ajax;
//    }
//}
